﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administration/Admin.Master" AutoEventWireup="true" CodeBehind="ReturnReasonEdit.aspx.cs" Inherits="QuickDev.Web.App.Administration.ReturnReasonEdit" %>

<%@ MasterType VirtualPath="~/Administration/Admin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="mainContentRegion">
        <div id="admin_centercontent">
            <div class="sectionHeader">
                <QuickDev:Label ID="lblReturnReasonAdministration" runat="server" Text="退换原因管理" /></div>
            <br />
            <table id="categoryTable">
                <tr>
                    <td>
                        <QuickDev:Panel ID="pnlCurrentReturnReasons" runat="server" Visible="false"  GroupingText="退换原因列表">
                            <QuickDev:DataGrid ID="dgReturnReasons" runat="server" AutoGenerateColumns="false" SkinID="adminDataGridNoPage">
                                <Columns>
                                    <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                                        <ItemTemplate>
                                            <QuickDev:LinkButton ID="lbEdit" runat="server" CommandArgument='<%# Eval("Id") %>'
                                                OnCommand="lbEdit_Click" CausesValidation="false" />
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:BoundColumn DataField="Name" />
                                    <asp:BoundColumn DataField="DisplayOrder" ItemStyle-HorizontalAlign="center" />
                                    <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                                        <ItemTemplate>
                                            <QuickDev:ImageCheckBox runat="server" ID="cbPublished" Checked='<%# Eval("Published") %>'>
                                            </QuickDev:ImageCheckBox>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                                        <ItemTemplate>
                                            <QuickDev:LinkButton ID="lbDelete" runat="server" CommandArgument='<%# Eval("Id") %>'
                                                OnCommand="lbDelete_Click" CausesValidation="false" />
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                </Columns>
                            </QuickDev:DataGrid>
                        </QuickDev:Panel>
                    </td>
                    <td>
                        <QuickDev:Panel ID="pnlEditReturnReason" runat="server" GroupingText="添加删除退换原因">
                            <QuickDev:Label ID="lblId" runat="server" Visible="false" />
                            <div class="verticalalign">
                                <QuickDev:Label ID="lblName" runat="server" CssClass="label" />&nbsp;
                                <QuickDev:HelpLink ID="helpName" runat="server" NavigateUrl="javascript:void(0);" />
                            </div>
                            <asp:TextBox ID="txtName" runat="server" CssClass="textbox" />
                            <QuickDev:RequiredFieldValidator ID="rfvName" runat="server" Display="None" ControlToValidate="txtName" />
                            <br />
                            <br />
                            <div class="verticalalign">
                                <QuickDev:Label ID="lblDisplayOrder" runat="server" CssClass="label" />&nbsp;
                                <QuickDev:HelpLink ID="helpDisplayOrder" runat="server" NavigateUrl="javascript:void(0);" />
                            </div>
                            <asp:TextBox ID="txtDisplayOrder" runat="server" CssClass="textbox" />
                            <QuickDev:RequiredFieldValidator ID="rfvDisplayOrder" runat="server" Display="None"
                                ControlToValidate="txtDisplayOrder" />
                            <br />
                            <br />
                            <QuickDev:CheckBox ID="chkPublished" runat="server" CssClass="label" />
                            <QuickDev:HelpLink ID="helpPublished" runat="server" NavigateUrl="javascript:void(0);" />
                            <br />
                            <br />
                            <div class="verticalalign">
                                <QuickDev:Label ID="lblDescription" runat="server" CssClass="label" />&nbsp;
                                <QuickDev:HelpLink ID="helpDescription" runat="server" NavigateUrl="javascript:void(0);" />
                            </div>
                            <asp:TextBox ID="txtDescription" runat="server" CssClass="longmultilinetextbox" TextMode="MultiLine" />
                            <br />
                            <br />
                            <QuickDev:Button ID="btnSave" runat="server" OnClick="btnSave_Click" CssClass="button" />
                            <QuickDev:Button ID="btnReset" runat="server" OnClick="btnReset_Click" CssClass="button"
                                CausesValidation="false" />
                        </QuickDev:Panel>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>

